<?php
class IndexAction extends IsloginAction {
	public function __construct(){
		parent::__construct();
        $this->assign("username" , $this->username);
        $this->assign("group_name" , $this->group_name);	
        $this->assign("super_admin" ,$this->_cookie_data['super_admin']?true:false );
        $this->assign("url_data" , $this->_url_data);
	}
    public function index(){
    	$this->display();
    }

    public function top(){
        $d = D("Admin/Nav");
        $nav_list = $d->queryList();
        $this->assign("nav_list" , $nav_list);
        $this->display(); 
    }
    public function left(){
        $d = D("Admin/Nav");
        $nav_list = $d->queryList();
   /*  echo "<pre>";
        print_r($nav_list);*/
        if($nav_list){
            foreach($nav_list as $n_key => $n_val){
                $first_top_id = $n_val['id'];
                $first_top_name = $n_val['name'];
                break ;
            }
        }
        $this->assign("first_top_id" , $first_top_id);
        $this->assign("first_top_name" , $first_top_name);
        $this->assign("nav_list" , $nav_list);
        $this->display(); 
    }
   
 
}